package com.beamfield.dao.lab;

import com.beamfield.model.ConcreteEntrust;
import com.beamfield.modelVo.ConcreteEntrustVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface ConcreteEntrustMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ConcreteEntrust record);

    int insertSelective(ConcreteEntrust record);

    ConcreteEntrust selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ConcreteEntrust record);

    int updateByPrimaryKey(ConcreteEntrust record);

    List<ConcreteEntrustVo> selectPage(@Param("id") String id, @Param("entrustNum") String entrustNum, @Param("beamId") Long beamId,
                                       @Param("offset") String offset, @Param("limit") String limit, @Param("start") Date start, @Param("end") Date end, @Param("status") String status);

    long countPage(@Param("id") String id, @Param("entrustNum") String entrustNum, @Param("beamId") Long beamId, @Param("start") Date start, @Param("end") Date end, @Param("status") String status);

    Integer selectTodayMaxNum(@Param("beamId") Long beamId);
    ConcreteEntrust selectAddMixratioByPrimaryKey(Long id);
}